//
//  HJSupportInputController.h
//  KaiChat
//
//  Created by lx on 2023/12/22.
//

#import <UIKit/UIKit.h>
#import "HJSupportInputBar.h"

NS_ASSUME_NONNULL_BEGIN

@class HJSupportInputController;

typedef NS_ENUM(NSUInteger, HJSupportInputStatus) {
    HJSupportInputStatusNone,
    HJSupportInputStatusKeyboard,
    HJSupportInputStatusFAQ,
};


@protocol HJSupportInputControllerDelegate <NSObject>

@optional


- (void)inputController:(HJSupportInputController *)inputController didChangeHeight:(CGFloat)height;
- (void)inputController:(HJSupportInputController *)inputController didSendTextMessage:(NSString *)text;
- (void)inputControllerDidClickFAQ:(HJSupportInputController *)inputController;

- (void)inputController:(HJSupportInputController *)inputController didSendVoiceMessage:(NSString *)localPath;

- (void)inputControllerDidInputAt:(HJSupportInputController *)inputController;
 - (void)inputController:(HJSupportInputController *)inputController didDeleteAt:(NSString *)atText;
- (void)inputControllerBeginTyping:(HJSupportInputController *)inputController;
- (void)inputControllerEndTyping:(HJSupportInputController *)inputController;

@end

 

@interface HJSupportInputController : UIViewController

@property (nonatomic, strong) HJSupportInputBar *inputBar;

@property (nonatomic, weak) id<HJSupportInputControllerDelegate> delegate;
@property (nonatomic, assign, readonly) HJSupportInputStatus status;

- (void)reset;

@end

NS_ASSUME_NONNULL_END
